#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include <QTimer>
#include <map>
#include <list>
#include <vector>

#include "lesson.h"
#include "config.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void OnStartClicked(bool c);
    void OnStopClicked(bool c);
    void TimerCallBack();

private:

    bool CreateLessons();

    Ui::MainWindow*             ui;

    QTimer*                     timer_;

    std::map<int, Lesson*>      lessons_;

    uint32_t                    lesson_size_;

    std::vector<int>            already_;

    int                         last_select_ = -1;

    Config                      config_;

};

#endif // MAINWINDOW_H
